package hystrix.service;

import hystrix.service.impl.OrderServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component
@FeignClient(value = "SPRINGCLOUD-HYSTRIX-PAYMENT",fallback = OrderServiceImpl.class)
public interface OrderService {

    @GetMapping("api/hystrix/ok")
    String getResultOk();

    @GetMapping("api/hystrix/out")
    String getResultTimeOut() throws InterruptedException;
}
